READ BYTE FROM FILE
This command will read a single byte from the specified file.
Return Integer=READ BYTE FROM FILE(Filename, Position)
Filename
String
The file name to read from
Position
Integer
The position is specified in bytes from the beginning of the file. You can use this to obtain byte perfect reading of any file
This value is an integer number such as 1.
The position is specified in bytes from the beginning of the filedata. You can use this to obtain byte perfect reading of any file.
cls
for t=0 to 20
read byte from file("c:\rubarb",t)
print "value = "+str$(a)
next t
do
loop
end
FILE Commands Menu
Index